package boss.portal.entity.pro;

import boss.portal.entity.Common;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Entity
@Table(name="public_collect")
@Data
@ApiModel(value = "public_collect",description = "公共采集箱")
public class PublicCollect extends Common {

    @Column(name="source")
    @ApiModelProperty(name = "来源平台",value = "source")
    private String source;

    @Column(name = "detail_id")
    private Long detailId;

    @Column(name="source_item_id")
    @ApiModelProperty("采集来源ID")
    private String sourceItemId;

    @Column(name="platform_iItem_id")
    @ApiModelProperty("认领平台ID")
    private String platformItemId;

    @Column(name="title")
    @ApiModelProperty("产品标题")
    private String title;


    @Column(name="price")
    @ApiModelProperty("价格")
    private BigDecimal price;

    @Column(name="min_sku_price")
    @ApiModelProperty("最小价格")
    private BigDecimal minSkuPrice;


    @Column(name="max_sku_price")
    @ApiModelProperty("最大价格")
    private BigDecimal maxSkuPrice;

    @Column(name="stock")
    @ApiModelProperty("库存")
    private Integer stock;

    @Column(name="collect_people")
    @ApiModelProperty("采集人员")
    private String collectPeople;

    @Column(name="collect_start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("采集开始时间")
    private LocalDateTime collectStartTime;

    @Column(name="collect_end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("采集结束时间")
    private LocalDateTime collectEndTime;

    @Column(name="claim_platform")
    @ApiModelProperty("认领平台")
    private String claimPlatform;

    @Column(name="claim_status")
    @ApiModelProperty("认领状态：claim：未认领平台；claimed：已认领平台")
    private String claimStatus;

    @Column(name="collect_status")
    @ApiModelProperty("采集状态：success、fail")
    private String collectStatus;

    @Column(name="thumbnail")
    @ApiModelProperty("缩略图地址")
    private String thumbnail;

    @Column(name = "source_shop_name")
    @ApiModelProperty("采集店名")
    private String sourceShopName;

    @Column(name = "data_path")
    @ApiModelProperty("数据来源")
    private String dataPath;

    @Column(name = "platform_list")
    @ApiModelProperty("认领平台")
    private String platformList;

    @Column(name = "source_item_url")
    @ApiModelProperty("来源地址")
    private String sourceItemUrl;

    @Column(name = "wait_claimed_platforms")
    @ApiModelProperty("等待认领平台")
    private String waitClaimedPlatforms;

    @Column(name = "remark")
    @ApiModelProperty("备注")
    private String remark;







}
